//
//  UIColor+Hex.h
//  Customer
//
//  Created by tangang on 2017/8/28.
//  Copyright © 2017年 tangang. All rights reserved.
//

#import <UIKit/UIKit.h>
#define RGBA_COLOR(R, G, B, A) [UIColor colorWithRed:((R) / 255.0f) green:((G) / 255.0f) blue:((B) / 255.0f) alpha:A]
#define RGB_COLOR(R, G, B) [UIColor colorWithRed:((R) / 255.0f) green:((G) / 255.0f) blue:((B) / 255.0f) alpha:1.0f]


#define AdColor [UIColor colorWithHexString:@"#ff7e00"]
///新导航栏颜色
#define FocusColor [UIColor colorWithHexString:@"#05aaef"]
///默认导航栏颜色
#define NAVCOLOR [UIColor colorWithHexString:@"#f13131"]
#define NAVTITLECOLOR  [UIColor colorWithHexString:@"#333333"]
#define LightGrayColor [UIColor colorWithHexString:@"#f3f3f3"]
///默认橙色
#define DEFAULTORANGECOLOR [UIColor colorWithHexString:@"#ff8a00" alpha:1.0]
///默认绿色背景
#define DEFAULTGREENBGCOLOR [UIColor colorWithHexString:@"#43cea2" alpha:.2]
///默认蓝色背景
#define DEFAULTTEXTBLUECOLOR [UIColor colorWithHexString:@"#4170df"]
///默认黑色字体
#define DEFAULTTEXTBLACKCOLOR  [UIColor colorWithHexString:@"#333333"]
///默认灰色字体
#define DEFAULTTEXTGRAYCOLOR  [UIColor colorWithHexString:@"#999999"]
///默认深灰色字体
#define DEFAULTTEXTGDARKRAYCOLOR  [UIColor colorWithHexString:@"#666666"]
///默认分享字体
#define DEFAULTTEXTCOLOR  [UIColor colorWithHexString:@"#454545"]
///默认背景颜色
#define DEFAULTBGCOLOR  [UIColor colorWithHexString:@"#EEEEEE"]
///默认线条颜色
#define DEFAULTLINECOLOR  [UIColor colorWithHexString:@"#cccccc"]
@interface UIColor (Hex)

+ (UIColor *)colorWithHexString:(NSString *)color;

//从十六进制字符串获取颜色，
//color:支持@“#123456”、 @“0X123456”、 @“123456”三种格式
+ (UIColor *)colorWithHexString:(NSString *)color alpha:(CGFloat)alpha;

@end
